export function removeKeyup(i, cbMap, elMap) {
  const cbArr = cbMap[i]
  const el = elMap[i]
  el.removeEventListener('keydown', cbArr[0])
  el.removeEventListener('keyup', cbArr[1])
  delete cbMap[i]
  delete elMap[i]
  return true
}

export function removeKeydown(i, cbMap, elMap) {
  const cb = cbMap[i]
  const el = elMap[i]
  el.removeEventListener('keydown', cb)
  delete cbMap[i]
  delete elMap[i]
  return true
}
